
		<div id="main-content"> <!-- Main Content Section with everything -->			
			<!-- Page Head -->
			<form id="search" name='search' method='get' action=''>
				<label>关键词：</label>
				<select name="op">
					<option value='1' <?php echo $search['op']=='1'?'selected':''?>>绘本名称</option>
					<option value='2' <?php echo $search['op']=='2'?'selected':''?>>ISBN</option>
					<option value='3' <?php echo $search['op']=='3'?'selected':''?>>专案编号</option>
				</select>
				<input class="text-input" id='key' type='text' name='key' value='<?php echo $search['key']?$search['key']:'';?>' />
				<select class='op' name="pid">
					<option value="" <?php echo $search['pid']?'':'selected';?>>————出版社————</option>
					<?php foreach(publishers_options() as $row):?>
					<option value='<?php echo $row['id']?>' <?php echo $search['pid']==$row['id']?'selected':''?>><?php echo $row['publishername']?></option>
					<?php endforeach;?>
				</select>
				<select class='op' name="language">
					<option value="" <?php echo $search['language']?'':'selected';?>>--语言--</option>
					<?php foreach(language() as $v):?>
					<option value='<?php echo $v?>' <?php echo $search['language']==$v?'selected':''?>><?php echo $v?></option>
					<?php endforeach;?>
				</select>
				<select class='op' name="status">
					<option value="" <?php echo $search['status']?'':'selected';?>>--状态--</option>
					<?php foreach(ebook_status() as $k=>$v):?>
					<option value='<?php echo $k?>' <?php echo $search['status']==$k?'selected':''?>><?php echo $v?></option>
					<?php endforeach;?>
				</select>
				<input class="button" type='submit' value='搜索' />
				<input class='reset button' type='button' value='重置'/>
			</form>				
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>电子绘本管理</h3>					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->						
						<table>
							
							<thead>
								<tr>
								   
								   <th>No.</th>
								   <th>绘本名称</th>
								   <th>ISBN</th>
								   <th>动画形式</th>
								   <th>时长</th>
								   <th>专案编号</th>
								   <th>Operation</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="7">										
										<div class="pagination">
											<?php echo $page;?><!-- 分页 -->										
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<?php $i=0; foreach($query as $row):?>
								<tr>									
									<td><?php $i++;echo $i;?></td>
									<td><?php echo $row['title'];?></td>
									<td><?php echo $row['isbn'];?></td>
									<td><?php echo $row['format'];?></td>
									<td><?php echo $row['time'];?></td>
									<td><?php echo $row['project_numbers'];?></td>
									<td>
										<!-- Icons -->
										 <a href="<?php echo base_url()?>e_books/modify_e_books/<?php echo $row['id'];?>" title="Edit"><img src="<?php echo base_url()?>images/icons/pencil.png" alt="Edit" /></a>
										 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										 <a href="<?php echo base_url()?>e_books/del_e_books/<?php echo $row['id'];?>" title="Delete" onclick='return del()'><img src="<?php echo base_url()?>images/icons/cross.png" alt="Delete" /></a> 
									</td>
								</tr>
							<?php endforeach;?>	
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
	
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			<div class="clear"></div>			
		</div> <!-- End #main-content -->	

<script type='text/javascript'>
$(function(){
	$("#key").autocomplete({
		source: "<?php echo base_url()?>editor_books/autocomplete"
	});
	
	$(".op").change(function(){
		$("#search").submit();
	});
})
</script>